package top.rainbowecho.notify.domain.model.email.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 杨健
 * @since 2020-07-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_template")
public class MailTemplate implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.UUID)
    private String id;

    /**
     *  模板签名，用于表明模板用途
     */
    @TableField("sign")
    private String sign;

    /**
     * 模板邮件发送时的主题
     */
    @TableField("subject")
    private String subject;

    /**
     * 模板邮件内容
     */
    @TableField("context")
    private String context;

    /**
     * 模板邮件创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;


}
